package zisu.algorithm.algorithm;

import zisu.algorithm.algorithm.Array.Array;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/26 14:01
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) {
        //Array<E> 这里就需要 Array<Integer>
        Array<Integer> array = new Array();
        for(int i=0;i<10;i++){
            array.addLast(i);
        }
        System.out.println(array);

        array.add(1,100);
        System.out.println(array);

        array.addFirst(-1);
        System.out.println(array);

        array.remove(2);
        System.out.println(array);

        array.removeElement(2);
        System.out.println(array);

        array.removeElement(3);
        System.out.println(array);

    }
}
